package org.jeecg.modules.demo.mes.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 生产计划
 * @Author: jeecg-boot
 * @Date:   2022-12-01
 * @Version: V1.0
 */
@Data
@TableName("camellia_mes_process_plan")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="camellia_mes_process_plan对象", description="生产计划")
public class CamelliaMesProcessPlan implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**订单ID*/
	@Excel(name = "订单ID", width = 15)
    @ApiModelProperty(value = "订单ID")
    private String orderId;
	/**生产计划编号*/
	@Excel(name = "生产计划编号", width = 15)
    @ApiModelProperty(value = "生产计划编号")
    private String code;
	/**产品名称*/
	@Excel(name = "产品名称", width = 15)
    @ApiModelProperty(value = "产品名称")
    private String orderProduct;
	/**生产量*/
	@Excel(name = "生产量", width = 15)
    @ApiModelProperty(value = "生产量")
    private Double orderNum;

    @Excel(name = "副产品产量", width = 15)
    @ApiModelProperty(value = "副产品产量")
    private Double byproductNum;


    @Excel(name = "审核备注", width = 15)
    @ApiModelProperty(value = "审核备注")
    private String auditComment;



	/**生产状态*/
	@Excel(name = "生产状态", width = 15)
    @ApiModelProperty(value = "生产状态")
    private Integer processStatus;
	/**计划用时*/
	@Excel(name = "计划用时", width = 15)
    @ApiModelProperty(value = "计划用时")
    private Double timeRequired;
	/**所用原料*/
	@Excel(name = "所用原料", width = 15, dictTable = "camellia_mes_raw", dicText = "name", dicCode = "id")
	@Dict(dictTable = "camellia_mes_raw", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "所用原料")
    private String materialIds;
	/**所用工艺*/
	@Excel(name = "所用工艺", width = 15, dictTable = "camellia_mes_process_craft", dicText = "craft_name", dicCode = "id")
	@Dict(dictTable = "camellia_mes_process_craft", dicText = "craft_name", dicCode = "id")
    @ApiModelProperty(value = "所用工艺")
    private String crafts;
	/**所用机器*/
	@Excel(name = "所用机器", width = 15)
    @ApiModelProperty(value = "所用机器")
    @Dict(dictTable = "manage_device", dicText = "device_name", dicCode = "id")
    private String machines;
	/**生产员工*/
	@Excel(name = "生产员工", width = 15, dictTable = "camellia_mes_empployee", dicText = "name", dicCode = "id")
	@Dict(dictTable = "camellia_mes_empployee", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "生产员工")
    private String executor;
	/**负责人*/
	@Excel(name = "负责人", width = 15, dictTable = "camellia_mes_empployee", dicText = "name", dicCode = "id")
	@Dict(dictTable = "camellia_mes_empployee", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "负责人")
    private String principal;
	/**预计开始时间*/
	@Excel(name = "预计开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预计开始时间")
    private java.util.Date estStartTime;
	/**预计结束时间*/
	@Excel(name = "预计结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预计结束时间")
    private java.util.Date estEndTime;
	/**实际开始时间*/
	@Excel(name = "实际开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "实际开始时间")
    private java.util.Date realStartTime;
	/**实际结束时间*/
	@Excel(name = "实际结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "实际结束时间")
    private java.util.Date realEndTime;
}
